# This file is used to manage Vulkan dependencies for several repos. It is
# used by gclient to determine what version of each dependency to check out, and
# where.

# Avoids the need for a custom root variable.
use_relative_paths = True
git_dependencies = 'SYNC'

vars = {
  'chromium_git': 'https://chromium.googlesource.com',

  # Current revision of glslang, the Khronos SPIRV compiler.
  'glslang_revision': '05cfcc1613c28c1274036f53616d66324f7cd383',

  # Current revision of Lunarg VulkanTools
  'lunarg_vulkantools_revision': 'e5bc3f26e3c9fa6a61439cd1c3892cfdd720ab3a',

  # Current revision of spirv-cross, the Khronos SPIRV cross compiler.
  'spirv_cross_revision': 'b8fcf307f1f347089e3c46eb4451d27f32ebc8d3',

  # Current revision fo the SPIRV-Headers Vulkan support library.
  'spirv_headers_revision': '50daff941d88609b4d2ad076eae558e727f8e5cd',

  # Current revision of SPIRV-Tools for Vulkan.
  'spirv_tools_revision': 'e0bad2825dacf274578ec6d3c0e64e406d5e4fd7',

  # Current revision of Khronos Vulkan-Headers.
  'vulkan_headers_revision': 'b39ab380a44b6c8df462c34e976ea9ce2d2c336b',

  # Current revision of Khronos Vulkan-Loader.
  'vulkan_loader_revision': '22c0f133e6675f9313c12fb5e58337f8fa9b9195',

  # Current revision of Khronos Vulkan-Tools.
  'vulkan_tools_revision': 'd671923090e4dc74c0ebdb10c6e09fa0826e1fe9',

  # Current revision of Khronos Vulkan-Utility-Libraries.
  'vulkan_utility_libraries_revision': '54c9baf20802a13279e23fa4cb0528dd5cf16064',

  # Current revision of Khronos Vulkan-ValidationLayers.
  'vulkan_validation_revision': 'ce9b7e404fe1a312ff4c07961dc6f8a2fd925d44',
}

deps = {
  'glslang/src': {
    'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@{glslang_revision}',
  },

  'lunarg-vulkantools/src': {
    'url': '{chromium_git}/external/github.com/LunarG/VulkanTools@{lunarg_vulkantools_revision}',
  },

  'spirv-cross/src': {
    'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@{spirv_cross_revision}',
  },

  'spirv-headers/src': {
    'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@{spirv_headers_revision}',
  },

  'spirv-tools/src': {
    'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@{spirv_tools_revision}',
  },

  'vulkan-headers/src': {
    'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@{vulkan_headers_revision}',
  },

  'vulkan-loader/src': {
    'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@{vulkan_loader_revision}',
  },

  'vulkan-tools/src': {
    'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Tools@{vulkan_tools_revision}',
  },

  'vulkan-utility-libraries/src': {
    'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Utility-Libraries@{vulkan_utility_libraries_revision}',
  },

  'vulkan-validation-layers/src': {
    'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@{vulkan_validation_revision}',
  },
}
